package com.service.component.permissions.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.service.component.common.entity.CommonEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import java.sql.JDBCType;

/**
 * @author ：Administrator
 * @create ：2021/7/22 9:39
 * @description：权限实体类
 * @modified By：
 * @version: 1.0.0$
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "权限实体")
@TableName(value = "sys_permission")
public class Permission extends CommonEntity {

    @TableField(value = "PARENT_ID")
    @ApiModelProperty(value = "权限父Id")
    private String parentId;

    @NotBlank(message = "权限英文名称不能为空")
    @TableField(value = "PERM_NAME_EN")
    @ApiModelProperty(value = "权限英文名称")
    private String  permNameEN;

    @NotBlank(message = "权限中文名称不能为空")
    @TableField(value = "PERM_NAME_CN")
    @ApiModelProperty(value = "权限中文名称")
    private String  permNameCN;

    @TableField(value = "PERM_DESCRIBE")
    @ApiModelProperty(value = "权限描述")
    private String permDescribe;

}
